package com.mysteel.product.feign.fallback;

import com.mysteel.common.exception.BizCodeEnum;
import com.mysteel.product.feign.SecKillFeignService;
import com.mysteel.product.vo.web.SecKillSkuRedisVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * ProjectName: mail
 * ClassName: SecKillFeignServiceFallback
 * Description:
 * date: 2021/04/19/019 13:39
 *
 * @author xiaochao
 */
@Slf4j
@Component
public class SecKillFeignServiceFallback implements SecKillFeignService {
    @Override
    public SecKillSkuRedisVo getSkuSecKillInfo(Long skuId) {
        log.error("远程调用秒杀接口失败,sentinel自动熔断...");
        return null;
    }
}
